import java.util.Scanner;
public class Zuoye3 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入高度：");
        int a=in.nextInt();
        for(int b=0;b<a;b++)
        {
            for(int c=0;c<a-b;c++)
            {
                System.out.print(" ");
            }
            for(int d=0;d<b;d++)
            {
                System.out.print("*");
                System.out.print(" ");
            }
            System.out.println();
        }
    }
}
